<?php
/*
+--------------------------------------------------------------------------
|   WeCenter [#RELEASE_VERSION#]
|   ========================================
|   by WeCenter Software
|   © 2011 - 2014 WeCenter. All Rights Reserved
|   http://www.wecenter.com
|   ========================================
|   Support: WeCenter@qq.com
|
+---------------------------------------------------------------------------
*/


if (!defined('IN_ANWSION'))
{
	die;
}

class dept_class extends AWS_MODEL
{
	public function add_dept($data = array())
	{
		return $this->insert('dept', $data);
	}

    public function get_dept_by_id($id)
    {
        return $this->fetch_row('dept', 'id = ' . intval($id));
    }
    public function update_dept($update_data, $id)
    {


        return $this->update('dept', $update_data, 'id = ' . $id);
    }

    public function delete_dept_by_id($id){

        return $this->delete('dept',"id = ".$id);
    }


}